From: Carlos Garnacho Date: Thu, 18 Mar 2021 17:40:40 +0000 (+0100) Subject: st/button: Consider touch sequences for ::pressed state X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~9 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=279db3f16887427007c22601e441e3ea4c8dcde7;p=gnome-shell.git st/button: Consider touch sequences for ::pressed state We do notify on the ::pressed property after touch begin/end and recording the event sequence, but we do not return the correct value if the button was triggered via touch. Consider the event sequence also in the ::pressed getter, so the button is considered pressed. Part-of: --- diff --git a/src/st/st-button.c b/src/st/st-button.c index 1be9de5f0..eae245928 100644 --- a/src/st/st-button.c +++ b/src/st/st-button.c @@ -432,7 +432,7 @@ st_button_get_property (GObject *gobject, g_value_set_boolean (value, priv->is_checked); break; case PROP_PRESSED: - g_value_set_boolean (value, priv->pressed != 0); + g_value_set_boolean (value, priv->pressed != 0 || priv->press_sequence != NULL); break;